<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<title>订单信息</title>
<link rel="stylesheet" type="text/css" href="/css/readerTyper.css" />
<style type="text/css">
#content {
	height: 450px;
	border: 1px solid #EEDC82;
}

#p {
	color: #FF6600
}

#d1 {
	margin: 0px auto;
}

#p1 {
	height: 60px;
	background-image:
		url("${pageContext.request.contextPath }/Images/borrow.png");
	background-repeat: no-repeat;
}

#d2 table {
	width: 90%;
	text-align: center;
	margin-top: 20px;
}

#t1 {
	background-color: #FCEC9A;
	border-color: #FFFFFF
}
</style>
</head>
<script type="text/javascript" src="../../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../../js/order.js"></script>
<body style="font-size: 20px">
	<%@ include file="navigation.jsp"%>
	<div id="content">
		<p id="p">当前位置：订单管理 > 订单信息>></p>
		<div id="d1">
			<div align="left">
				<select id="selectType">
					<option value=1 name="orderid">订单号</option>
					<option value=2>门店名称</option>
					<option value=3>下单商品</option>
				</select> <input id="orderid" name="readId" size="32px"
					onkeyup="this.value=this.value.replace(/^\s+|\s+$/g,'')"><input
					id="select" type="button" value="查询"> <input id="back"
					type="button" onclick="history.go(0)" value="重置">
			</div>
		</div>
		<div id="d2">
			<table id="t1" border="1" cellpadding="0px" cellspacing="0px"
				align="center">
				<tr>
					<td class="c1">订单号</td>
					<td class="c1">门店名称</td>
					<td class="c1">下单商品</td>
					<td class="c1">数量(kg)</td>
					<td class="c1">订单状态</td>
					<td class="c1">下单时间</td>
					<td class="t1">确认订单</td>
					<td class="t1">修改</td>
				</tr>
				<c:forEach items="${list}" var="r">
					<tr>
						<td class="t1">${r.orderid}</td>
						<td class="t1">${r.shopid}</td>
						<td class="t1">${r.goodsname}</td>
						<td class="t1">${r.goodsnum}</td>
						<td class="t1">${r.orderStatus}</td>
						<td class="t1"><fmt:formatDate value="${r.createtime}"
								pattern="yyyy-MM-dd" /></td>
						<td class="t1"><c:if test="${r.orderStatus=='未确认'}"><a
							href="/order/confirmOrder?orderid=${r.orderid}">确认</a></c:if>
							<c:if test="${r.orderStatus=='已确认'}"><a
							href="/order/executeOrder?orderid=${r.orderid}">收货</a></c:if>
							</td>
						
						<td class="t1"><c:if test="${r.orderStatus=='未确认'}"><a
							href="/order/showudporder?orderid=${r.orderid}">修改</a></c:if></td>
					</tr>
				</c:forEach>
			</table>
		</div>
	</div>

</body>
</html>